package com.ctshk.sapp.ship.controller;


import com.ctshk.common.annotations.OperationLogAnnotation;
import com.ctshk.common.dto.Result;
import com.ctshk.common.enums.OperationLogModel;
import com.ctshk.common.enums.OperationLogType;
import com.ctshk.common.web.support.BaseController;
import com.ctshk.rpc.ship.dto.MainDataShipPortListDTO;
import com.ctshk.rpc.ship.service.IMainDataShipPortService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 船票港口主数据 前端控制器
 * </p>
 *
 * @author 刘蕾
 * @since 2021-04-13
 */
@Api(value = "船票港口主数据",tags = "船票港口主数据")
@RestController
@RequestMapping("/main-data-ship-port")
public class MainDataShipPortController extends BaseController {


    @DubboReference
    private IMainDataShipPortService iMainDataShipPortService;

    @ApiOperation(value = "查询船票港口主数据", notes = "查询船票港口主数据")
    @OperationLogAnnotation(operModul = OperationLogModel.TICKET, operType = OperationLogType.QUERY, operTitle = "查询船票港口主数据", operDesc = "查询船票港口主数据")
    @GetMapping(value = "/queryMainDataList")
    public Result<List<MainDataShipPortListDTO>> queryMainDataList() {
        return Result.success(iMainDataShipPortService.queryMainDataList());
    }
}
